package ${basePackage}.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * ${tableComment}
 * </p>
 *
 * @author Leil
 * @since ${.now}
 */
@TableName("${tableName}")
@ApiModel(value="${upperStartModelName}对象", description="${tableComment}")
public class ${upperStartModelName} implements Serializable {

    private static final long serialVersionUID=1L;

    <#list columns! as column>
    @ApiModelProperty(value = "${column.comment}")
    @TableId("${column.originalName}")
    private ${column.javaType} ${column.name};
    </#list>

    <#list columns! as column>
    public ${column.javaType} get${column.upperStartName}() {
        return ${column.name};
    }

    public void set${column.upperStartName}(${column.javaType} ${column.name}) {
        this.${column.name} = ${column.name};
    }
    </#list>

    @Override
    public String toString() {
        return "${upperStartModelName}{" +
        <#list columns! as column>
        "<#if column_index != 0>,</#if>${column.name}=" + ${column.name} +
        </#list>
        "}";
    }
}
